package com.interactive.internal.ant;

import org.apache.tools.ant.types.Path;
import org.apache.tools.ant.types.Reference;

public class AbbotClasspathInjector extends AbstractAbbotClassPathTask
{
  private Path classpath;
  private String homeDir;

  public void setClasspath(Path classpath)
  {
    this.classpath = classpath;
  }

  public void setClasspathRef(Reference ref)
  {
    this.classpath = (Path) ref.getReferencedObject(getProject());
  }

  public void setTestHome(String testHome)
  {
    homeDir = testHome;
  }

  public void addClasspath(Path value)
  {
    classpath = value;
  }

  protected String getHomeDir()
  {
    return homeDir;
  }

  protected String getClasspathValue()
  {
    return classpath.toString();
  }
}
